package com.test.ioc.config;

import com.test.ioc.model.UserInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
public class BeanConfig {
    @Bean
    public UserInfo userInfo(){
        return new UserInfo("zhangsan");
    }
    @Bean
    public UserInfo userInfo2(){
        return new UserInfo("lisi");
    }

}
